package com.example.xsssglxt.mapper;

import com.example.xsssglxt.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper {
    @Select("select * from admin1 where name=#{name} and password=#{password}")
    List<Admin> selectadd(String name,String password);
    @Select("select * from admin_copy")
    List<Admin> selectadd1();

    @Select("select * from student_copy where name=#{name} and password=#{password}")
    List<Admin> selectadd1(String name, String password);
    @Select("select * from sushe_manager where name=#{name} and password=#{password}")
    List<Admin> selectadd2(String name, String password);
}
